<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.dept/TR/html4/loose.dtd">
<html>
<head>
<%@include file="/header.jsp" %>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改组织机构</title>
<script type="text/javascript">
if("${error}"=="0"){
	   closeMyDialog({flag:true});
	 }else if("${error}"=="1"){
	   myAlert("错误信息","${msg}","e");
	 }
	 $(function(){
		 $("#cancelBtn").click(function(){
    		 closeMyDialog();
    	 });
	     $("#saveBtn").click(function(){
             $("form").submit();
		     });
		 });
</script>
</head>
<body class="easyui-layout">
    <div data-options="region:'north',border:false" class="editHeadDiv"><span class="icon-tip">&nbsp;&nbsp;&nbsp;</span>&nbsp;提示信息：<font class="requiredmark">*</font>为必填字段！</div>
    <div data-options="region:'center',border:false" class="editContDiv">
      <form action="${base}sysDept/editDept" class="easyui-form" method="post"  data-options="novalidate:true">
             <input name="id" type="hidden" value="${dept.id}"/>
             <input name="upDeptId" type="hidden" value="${dept.upDeptId}"/>
            <table class="editTable">
            <tr>
               <th><font class="requiredmark">*</font>部门全称：</th><td><input class="easyui-textbox"  name="deptName" data-options="required:true"  value="${dept.deptName}"
               	validType="remote['${base}sysDept/validateDeptName?id=${dept.id}','deptName']"/></td>
               <th><font class="requiredmark">*</font>部门编号：</th><td><input class="easyui-textbox" name="deptCode" data-options="required:true"  value="${dept.deptCode}"
               	 validType="remote['${base}sysDept/validateDeptCode?id=${dept.id}','deptCode']"/></td>
           </tr>
           <tr>
               <th><font class="requiredmark">*</font>部门简称：</th><td><input class="easyui-textbox"  name="deptAbbr" data-options="required:true"  value="${dept.deptAbbr}"
               	validType="remote['${base}sysDept/validateDeptAbbr?id=${dept.id}','deptAbbr']"/></td>
                 <th><font class="requiredmark">*</font>状态：</th><td>
                   <input class="easyui-combobox" name="deptStatus"  validType="selectRequired['deptStatus']"
                   data-options='required:true,valueField:"itemValue",textField:"itemName",data:${SysDeptStatus},editable:false' value="${dept.deptStatus}"/>
                 </td>
           </tr>
             <tr>
             <th>所属组织：</th><td>
              <input class="easyui-combotree" panelHeight="auto" name="orgId" value="${dept.orgId}"  data-options='valueField:"itemValue",textField:"itemName",data:${orgList},editable:false<c:if test="${dept.upDeptId != '0'}">,readonly:true</c:if>' />
              </td>
            <th>排序：</th>
            <td><input class="easyui-textbox" name="orderNo"  value="${dept.orderNo}"/></td>
           </tr>
           <tr>
            <th>描述：</th><td colspan="3"><textarea class="easyui-textbox" data-options="multiline:true" name="remark" style="height:60px;width:94%;">${dept.remark}</textarea></td>
           </tr>
    </table>
    </form>
    </div>
	<div data-options="region:'south',border:false" class="editBtnDiv">
	    <a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" style="width:10%" id="saveBtn">保存</a>
		<a href="#" class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" style="width:10%" id="cancelBtn">取消</a>
	</div>
</body>
</html>